@Inject('$http')
class PatrolService {

  query(param) {
    return this.$http.post('/api/v1/patrol/query', param);
  }

  queryUnclosed(param) {
    return this.$http.post('/api/v1/patrol/queryUnclosed', param);
  }

  queryProcess(param) {
    return this.$http.post('/api/v1/patrol/process/query', param);
  }

  get(id) {
    return this.$http({
      url: '/api/v1/patrol/get',
      method: 'GET',
      params: { id },
    });
  }

  delete(ids) {
    return this.$http.post('/api/v1/patrol/delete', ids);
  }

  queryWorker(param) {
    return this.$http.post('/api/v1/patrol/user/query', param);
  }

  queryGIS(param) {
    return this.$http.post('/api/v1/trace/get', param);
  }

}

export default PatrolService;
